import request from '@/utils/request'

// 查询加工程序存储列表
export function listJggx(query) {
  return request({
    url: '/device/jggx/list',
    method: 'get',
    params: query
  })
}

// 查询加工程序存储详细
export function getJggx(id) {
  return request({
    url: '/device/jggx/' + id,
    method: 'get'
  })
}

// 新增加工程序存储
export function addJggx(data) {
  return request({
    url: '/device/jggx',
    method: 'post',
    data: data
  })
}

// 修改加工程序存储
export function updateJggx(data) {
  return request({
    url: '/device/jggx',
    method: 'put',
    data: data
  })
}

// 删除加工程序存储
export function delJggx(id) {
  return request({
    url: '/device/jggx/' + id,
    method: 'delete'
  })
}
